<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showAdd.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="admin/resource/css/wzgl.css" />
    <link rel="stylesheet" type="text/css" href="admin/resource/css/global.css" />

  </head>
  
  <body class="body">
   <div class="w_100 title_all box"><div class="return"><a href="javascript:history.back(-1)">返回</a></div></div>
	<div class="w_100 right_all center box">
		<!--添加用户-->
		<div class="right_lm_xglm box">
			<form action="res/res_add.action" method="post" id="f1">
				<ul>
					<li><span>资源名称：</span><input type="text" name="res.name" id="name"/>
					</li>
					<li><span>资源标识：</span><input type="text" name="res.value" id="value"/>
					<li><span>资源路径：</span><input type="text" name="res.url" id="url"/>
					</li>
					<li><span>上级资源：</span>
					<select name="pid">
					  <c:choose>
					    <c:when test="${empty res}">
					     <option value="0">上级资源</option>
					    </c:when>
					    <c:otherwise>
					      <option value="${res.id}">${res.name}</option>
					    </c:otherwise>
					  </c:choose>
					</select>
					</li>	
				</ul>
			<div class="xgnr_sub">
				<input type="reset" value="重置" /> <input type="submit" value="提交"/>
			</div>
			</form>
		</div>
	</div>
</body>
</html>
